
#ifndef __COMPILER_STATEMENT_HPP__
#define __COMPILER_STATEMENT_HPP__

#include "expression.hpp"
#include "list.hpp"

class Statement
{
public:
  void SetNextList( const IndexArray& list )
  {
    _nextList = list;
  }
  void SetNextList( const IndexArray& listA, const IndexArray& listB )
  {
    Merge( _nextList, listA, listB );
  }

  void AppendNextList( const IndexArray& list )
  {
    Merge( _nextList, _nextList, list );
  }

  IndexArray& GetNextList() { return _nextList; }

  IndexArray _nextList;
};

#endif // __COMPILER_STATEMENT_HPP__
